package com.bjpowernode.app.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class MyController {
    @Value("${server.port}")
    String port;
    @Value("${spring.application.name}")
    String name;
//    @Autowired
//    LoadBalancerClient loadBalancerClient;

    @GetMapping("/my")
    public String my() {
        String result=port+":"+name;
        return result;
    }

}
